//
//  CartProductModel.m
//  sensen_ios
//
//  Created by pro on 16/3/12.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "CartProductModel.h"

@implementation CartProductModel

- (void)setAttributes:(NSDictionary *)jsonDic {
    [super setAttributes:jsonDic];
    
    __id = [jsonDic valueForKey:@"id"];
    
    if ([_sku_desc isEqualToString:@""]) { // 统一规格的商品
        _sku_desc = @"统一规格";
    }
}

- (NSString *)description {
    
    return [NSString stringWithFormat:@"price:%@\ncount:%@", _price, _count];
}

@end
